//
//  IntroductionController.m
//  LanguagesTeach
//
//  Created by Niel Santos on 2/3/13.
//  Copyright 2013 __MyCompanyName__. All rights reserved.
//

#import "IntroductionController.h"


@implementation IntroductionController

@synthesize subjectPath;
@synthesize table_view;

// Implement viewDidLoad to do additional setup after loading the view.
- (void)viewDidLoad {
	XMLSubjectParser *xmlSubjectParser;
	
	subjectTableViewDataSource = [[SubjectTableViewDataSource alloc] init: subjectPath];
	
	
	imageDisplayer = [[[ShowAllImages alloc] init:  subjectPath];
					  - (id)init: (UILabel*)imageDescription
					  imageCounter: (NSString*)imageCounter
					  imageView: (UIImageView*)imageView
					  exercises: (Exercises*) exercises;
	
	//table_view.dataSource = subjectTableViewDataSource;
	self.title = NSLocalizedString(@"title_introduction_controller", @"");
    [super viewDidLoad];
	[[self navigationController] setNavigationBarHidden:YES animated:YES];
	
	
	//[[self navigationController] setNavigationBarHidden:NO animated:YES];
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
	return YES;
}

- (void)didReceiveMemoryWarning {
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc. that aren't in use.
}

- (void)viewDidUnload {
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}


- (void)dealloc {
	subjectPath.subject = nil;
	[imageDisplayer release]:
	[subjectTableViewDataSource release];
	[subjectPath release];
    [super dealloc];
}


@end
